home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Focus Sets
- Sent: 8/2/96 11:47 PM
- Received: 8/5/96 8:42 AM
- From: lamiraux@ix.netcom.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- One problem I can see is that the embedded frame is going to always
- grab its focii on mouse up unless you flag it as selected (using the
- FW_MProxy API). If the user pressed option, in your
- DoMouseDownInEmbeddedFrame you need to change the select state of the
- embedded frame so it will grab its focii on mouse up. Don't forget that
- activation happens on mouse-up not on mouse-down and there is no way
- for a container to avoid that one of its embedded frame get activatated
- unless the embedded frame is selected or bundled.
-
-
- -----------------------------------------------------------------
-
-
-
- >I hate to ask these "how do I" questions, but I have been battling this one
- >for two days and am totally confused at this point.
- >
- >This is for Rapid-I Button. Here's what its focus behavior needs to be.
- >Like ODF Embed, the button can have (but doesn't always have) 1 embedded
- >part (which is a label). Like ODF Button, when the user clicks on the
- >Rapid-I Button or its embedded part, the button should track - neither the
- >Rapid-I Button nor the embedded part should grab focii. If the user
- >option-clicks on the embedded part, it should grab its desired focii. If
- >the user option-clicks on the portion of the Rapid-I Button which is not
- >the used shape of the embedded part, Rapid-I Button should grab its focii.
- >
- >The "RIButtonFrame" class is the only view class that Rapid-I Button uses.
- >I don't actually use control views or the Mac's Control Manager.
- >
- >I tried using the "COptionBehavior" and "CButtonFrame" ways of dealing with
- >focii from ODF Button. I also tried adding a "DoMouseDownInEmbeddedFrame"
- >method to both the COptionBehavior and RIButtonFrame classes.Walking
- >through the debugger, I can't find a consistent ordering to the execution
- >path going through COptionBehavior::DoMouseDown,
- >RIButtonFrame::GetFocusSet, and RIButtonFrame::DoMouseDown.
- >RIButtonFrame::GetFocusSet can be called before or after
- >COptionBehavior::DoMouseDown. I can't make any sense of it.
- >
- >So, how _should_ I go about getting this focus set stuff to work right?
- >
- >Brad
- >
- ><mailto: "Brad Hutchings" brad@hutchings-software.com>
- ><http://www.hutchings-software.com>
- >
- >Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Email me for more
- >information...
-